package com.kl.seckill.vo;

import com.kl.seckill.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 接收登录参数
 */
@Data
public class LoginVo {
	@NotNull  //非空校验
	@IsMobile //手机号规范校验
	private String mobile;

	@NotNull
	@Length(min = 32) //密码长度至少是32位的
	private String password;

}